/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 */
package com.jeesite.modules.app.course.exercise.record.entity;

import java.math.BigDecimal;

import org.hibernate.validator.constraints.Length;

import com.jeesite.common.entity.DataEntity;
import com.jeesite.common.mybatis.annotation.Column;
import com.jeesite.common.mybatis.annotation.Table;
import com.jeesite.common.mybatis.mapper.query.QueryType;

/**
 * 课程练习记录Entity
 * @author zpp
 * @version 2020-02-17
 */
@Table(name="t_course_exercise_record", alias="a", columns={
		@Column(name="id", attrName="id", label="主键", isPK=true),
		@Column(name="course_id", attrName="courseId", label="理论表主键"),
		@Column(name="checked", attrName="checked", label="选则"),
		@Column(name="user_id", attrName="userId", label="用户主键"),
		@Column(includeEntity=DataEntity.class),
		@Column(name="answer_id", attrName="answerId", label="答案字段"),
		@Column(name="question_type", attrName="questionType", label="问题类型"),
		@Column(name="question_id", attrName="questionId", label="问题id"),
		@Column(name="score", attrName="score", label="问题id"),
		@Column(name="course_hourse_id", attrName="courseHourseId", label="课时id"),
		@Column(name="course_hourse_title", attrName="courseHourseTitle", label="课时标题"),
	}, orderBy="a.update_date DESC"
)
public class TcourseExerciseRecord extends DataEntity<TcourseExerciseRecord> {
	
	private static final long serialVersionUID = 1L;
	private String courseId;		// 理论表主键
	private Integer checked;		// 选则
	private String userId;		// 用户主键
	private String answerId;		// 答案字段
	private Integer questionType;		// 问题类型
	private String questionId;		// 问题id
	private BigDecimal score;
	private String courseHourseId;
	private String courseHourseTitle;
	private boolean flag;

	public boolean isFlag() {
		return flag;
	}

	public void setFlag(boolean flag) {
		this.flag = flag;
	}

	public String getCourseHourseId() {
		return courseHourseId;
	}

	public void setCourseHourseId(String courseHourseId) {
		this.courseHourseId = courseHourseId;
	}

	public String getCourseHourseTitle() {
		return courseHourseTitle;
	}

	public void setCourseHourseTitle(String courseHourseTitle) {
		this.courseHourseTitle = courseHourseTitle;
	}

	public BigDecimal getScore() {
		return score;
	}

	public void setScore(BigDecimal score) {
		this.score = score;
	}

	public TcourseExerciseRecord() {
		this(null);
	}

	public TcourseExerciseRecord(String id){
		super(id);
	}
	
	@Length(min=0, max=50, message="理论表主键长度不能超过 50 个字符")
	public String getCourseId() {
		return courseId;
	}

	public void setCourseId(String courseId) {
		this.courseId = courseId;
	}
	
	public Integer getChecked() {
		return checked;
	}

	public void setChecked(Integer checked) {
		this.checked = checked;
	}
	
	@Length(min=0, max=50, message="用户主键长度不能超过 50 个字符")
	public String getUserId() {
		return userId;
	}

	public void setUserId(String userId) {
		this.userId = userId;
	}
	
	@Length(min=0, max=255, message="答案字段长度不能超过 255 个字符")
	public String getAnswerId() {
		return answerId;
	}

	public void setAnswerId(String answerId) {
		this.answerId = answerId;
	}
	
	public Integer getQuestionType() {
		return questionType;
	}

	public void setQuestionType(Integer questionType) {
		this.questionType = questionType;
	}
	
	@Length(min=0, max=50, message="问题id长度不能超过 50 个字符")
	public String getQuestionId() {
		return questionId;
	}

	public void setQuestionId(String questionId) {
		this.questionId = questionId;
	}
	
}